package A0402;

import java.util.ArrayList;
import java.util.List;

public class Dog extends Animal{

    public void fun(){
        System.out.println("狗能咬人");
        Dog dog = (Dog)new Animal();
    }

    public Dog() {
//        System.out.println(1231);
//        super(21);//通过super调用了父类的有参构造
//        super.A = 2;
    }


    
    public static void main(String[] args) {
        Dog dog = new Dog();//创建了一个dog实例

        List<Integer> list = new ArrayList<>();
    }
}
